package vip.george.bean.config;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import vip.george.bean.animal.Cat;

@Configuration
//@Component("animalConfig")
public class AnimalConfig {




    @Bean
    public Cat cat1() {
        Cat cat = new Cat();
        cat.setName("cat1");
        cat.setAge(18);
        return cat;
    }

    @Bean
    public Cat cat2() {
        Cat cat = new Cat();
        cat.setName("cat2");
        cat.setAge(18);
        return cat;
    }
}
